local base = piece "base"
local radar = piece "radar"
local wheel = piece "wheel"

local function Open()
        Signal(2)
        SetSignalMask(1)

        Spin(radar, y_axis, 1, 0.01)
        Spin(wheel, y_axis, -1.2, 0.05)
        return true
end

local function Close()
        Signal(1)
        SetSignalMask(2)

        StopSpin(radar, y_axis, 0.05)
        StopSpin(wheel, y_axis, 0.05)
        return true
end

function script.Activate ( )
        StartThread( Open )

end

function script.Deactivate ( )
        StartThread( Close )
end
